import request from "@/utils/request";

// 获取预测结果
export function getAllSalesResult(str) {
  str = str || "";
  return request({
    url: "/salesPredict/getAllResult?" + str,
    method: "get",
  });
}

// 进行在线预测
export function predictSaleOnline(data, ratio) {
  return request({
    url: "/salesPredict/predictSaleOnline?ratio=" + ratio,
    method: "post",
    data: data,
  });
}

// 进行在线传统预测
export function predictSaleOnlineTradition(data, forcastMonth) {
  return request({
    url:
      "/salesPredict/predictSaleOnlineTradition?forcastMonth=" + forcastMonth,
    method: "post",
    data: data,
  });
}
